#pragma once

#include "Singleton.h"
#include "PlugManager.h"

class TOcaf_Application;
class CAnyDocument;


class GEOMDBAPI CAnyApplicaton 
	: public ATools::TSingleton<CAnyApplicaton>
{
public:
	CAnyApplicaton();
	~CAnyApplicaton();
	BOOL Initialize(void);
	void ExitApplication();

	CAnyDocument* CreateDocument();

private:
	TOcaf_Application* m_pOcafApp;
	CPlugManager	m_Plugs;

};

inline CAnyApplicaton& GetAnyApp()
{
	return CAnyApplicaton::Instance();
}
